﻿#include "CmdThreeDCloudMapSidebarUpdateOriginalDataSource.h"
#include <QFile>
#include <QDebug>
#include "BaseModule/IBaseSignal.h"
#include "PostCommandPy.h"

namespace PostCommand
{
    CmdThreeDCloudMapSidebarUpdateOriginalDataSource::CmdThreeDCloudMapSidebarUpdateOriginalDataSource()
        : CommandBase()
    {
        this->initCmdName();
    }
    CmdThreeDCloudMapSidebarUpdateOriginalDataSource::~CmdThreeDCloudMapSidebarUpdateOriginalDataSource()
    {
    }

    bool CmdThreeDCloudMapSidebarUpdateOriginalDataSource::execute()
    {
        //bool _success = false;
        emit IBaseSignalInstance->signal_threeDCloudMapSidebarUpdateOriginalDataSource(m_windowId, m_index, m_showType, m_fixedValueIndex, m_isLog, m_isNormalize);
        return true;
    }

    void CmdThreeDCloudMapSidebarUpdateOriginalDataSource::undo()
    {
    }

    void CmdThreeDCloudMapSidebarUpdateOriginalDataSource::redo()
    {
        // execute();
    }

    void CmdThreeDCloudMapSidebarUpdateOriginalDataSource::setThreeDCloudMapSidebarOriginalDataSource(int windowId, int index, int showType, int fixedValueIndex, bool isLog, bool isNormalize)
    {
        m_windowId = windowId;
        m_index = index;
        m_showType = showType;
        m_fixedValueIndex = fixedValueIndex;
        m_isLog = isLog;
        m_isNormalize = isNormalize;
    }

} // namespace PostCommand
